package com.learning.cloud.controller;

import com.learning.cloud.entity.User;
import com.learning.cloud.feign.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * description:
 *
 * @author minghuiZhang
 * @date created in  15:28 2018/4/28
 * modified by
 */
@RestController
public class MovieController {

	@Autowired
	private UserFeignClient userFeignClient;

	@GetMapping("/movie/{id}")
	public User findById(@PathVariable("id") Long id){
		return userFeignClient.findById(id);
	}


}
